﻿/*
 * Created by SharpDevelop.
 * User: Marc-Eric Boisvert
 * Date: 11/09/2015
 * Time: 10:49
 * 
 */
using System;

namespace AppTestWPF.BusinessObjects
{
	/// <summary>
	/// Description of Class1.
	/// </summary>
	public class Class1
	{
		protected static Class1 _instance = null;
		protected static object _lockObject = new object();
		protected Class2 _cls2 = null;
		
		private Class1()
		{
			
		}
		
		public static Class1 Instance
        {
            get
            {
                lock (_lockObject)
                {
                    if ((_instance == null))
                    {
                        _instance = new Class1();
                    }
                }
                return _instance;
            }
        }
		
		public Class2 Cls2
		{
			get{return this._cls2;}
			set{ this._cls2 = value;}
		}
	}
}
